package com.sql.weeego.bean.base;

/**
 * UchomeTagblogId entity. @author MyEclipse Persistence Tools
 */

public class UchomeTagblogId implements java.io.Serializable {

	// Fields

	private Integer tagid;
	private Integer blogid;

	// Constructors

	/** default constructor */
	public UchomeTagblogId() {
	}

	/** full constructor */
	public UchomeTagblogId(Integer tagid, Integer blogid) {
		this.tagid = tagid;
		this.blogid = blogid;
	}

	// Property accessors

	public Integer getTagid() {
		return this.tagid;
	}

	public void setTagid(Integer tagid) {
		this.tagid = tagid;
	}

	public Integer getBlogid() {
		return this.blogid;
	}

	public void setBlogid(Integer blogid) {
		this.blogid = blogid;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof UchomeTagblogId))
			return false;
		UchomeTagblogId castOther = (UchomeTagblogId) other;

		return ((this.getTagid() == castOther.getTagid()) || (this.getTagid() != null
				&& castOther.getTagid() != null && this.getTagid().equals(
				castOther.getTagid())))
				&& ((this.getBlogid() == castOther.getBlogid()) || (this
						.getBlogid() != null
						&& castOther.getBlogid() != null && this.getBlogid()
						.equals(castOther.getBlogid())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getTagid() == null ? 0 : this.getTagid().hashCode());
		result = 37 * result
				+ (getBlogid() == null ? 0 : this.getBlogid().hashCode());
		return result;
	}

}